{extend name="public/base" /}
{block name="body"}
<div class="row">
    <div class="col-xs-12">
        <div>
            <form name="" id="myform" method="post" action="{:url('Article/regainArticle')}">
                <table id="dynamic-table" class="table table-striped table-bordered table-hover">
                    <thead>
                    <tr>
                        <th width="5%" class="center">
                            <label class="pos-rel">
                                <input type="checkbox" class="ace" id='chkAll' onclick='CheckAll(this.form)' value="全选"/>
                                <span class="lbl"></span>
                            </label>
                        </th>
                        <th width="5%">id</th>
                        <th width="37%">栏目标题</th>
                        <th width="13%">类别</th>
                        <th width="13%">删除时间</th>
                        <th width="27%" style="border-right:#CCC solid 1px;">操作</th>
                    </tr>
                    </thead>

                    <tbody>
                    {notempty name="list"}
                    {volist name="list" id="v"}
                    <tr>
                        <td class="center">
                            <label class="pos-rel">
                                <input name='id[]' id="navid" class="ace" type='checkbox' value='{$v.id}'>
                                <span class="lbl"></span>
                            </label>
                        </td>
                        <td>{$v.id}</td>
                        <td></span>{$v.title}</td>
                        <td>{$v.name}</td>

                        <td>{$v.up_time|date="Y-m-d",###}</td>
                        <td>
                            <div class="hidden-sm hidden-xs action-buttons">              
                                <a class="_del" href="javascript:;" attr-id="{$v.id}" attr-url="{:url('Article/regainArticle')}" title="撤销删除">
                                    <i class="ace-icon fa fa-mail-reply bigger-130"></i>
                                </a>
								<a class="red _del" href="javascript:;" attr-id="{$v.id}" attr-url="{:url('Article/del')}" title="彻底删除">
                                    <i class="ace-icon fa fa-trash-o bigger-130"></i>
                                </a>
                            </div>
                        </td>
                    </tr>
                    {/volist}
                    <tr>   
                        <td height="50" colspan="6" align="left"><button type="submit" class="btn btn-white btn-yellow btn-sm">全部恢复</button>{$list->render()}</td>
                    </tr> 

                    {else /}
                        <tr>   
                            <td height="50" colspan="6" class="text-center"><span class="text-info">没有相关数据!</span></td>
                        </tr> 
                    {/notempty}
                    
                    </tbody>
                </table>
            </form>
        </div>
    </div>
</div>
{/block}